[PATCH libaio 22/28] harness: Add fallback code for filesystems not supporting O_DIRECT
authorGuillem Jover <guillem@hadrons.org>
Sat, 20 Jul 2019 19:21:01 +0000 (21:21 +0200)
committerGuillem Jover <guillem@debian.org>
Tue, 2 Nov 2021 23:56:45 +0000 (23:56 +0000)
commit1499673f4248695f07f27b2c7e979967c2769797
treea24b66ee4badff0db8bebb20fefab3fcf33a77aa
parent0ce0c04e2a468ae5d8911a2ce64c1591a11be9d0
[PATCH libaio 22/28] harness: Add fallback code for filesystems not supporting O_DIRECT

When running the harness on a filesystem such as a tmpfs, which do not
support O_DIRECT, fallback to calls without the flag.

Signed-off-by: Guillem Jover <guillem@hadrons.org>
[JEM: change from duplicating the open call to using F_SETFL]
[JEM: 18 and 21 require O_DIRECT-skip if not present]
Signed-off-by: Jeff Moyer <jmoyer@redhat.com>
Gbp-Pq: Topic upstream
Gbp-Pq: Name 0022-harness-Add-fallback-code-for-filesystems-not-suppor.patch
harness/cases/17.t
harness/cases/18.t
harness/cases/19.t
harness/cases/21.t